<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>食光集 - 个人中心</title>
    <!-- Tailwind CSS CDN -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- 自定义配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#FF9AA2', // 可爱粉色
                        secondary: '#FFB7B2', // 浅粉色
                        accent: '#FFDAC1', // 橙色
                        light: '#E2F0CB', // 浅绿色
                        dark: '#B5EAD7', // 深绿色
                    },
                    fontFamily: {
                        sans: ['PingFang SC', 'Helvetica Neue', 'Arial', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style>
        /* 自定义样式 */
        .glass-effect {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }
        .cat-paw-tab {
            position: relative;
        }
        .cat-paw-tab::before {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 15px;
            background-image: url('https://cdn-icons-png.flaticon.com/512/2171/2171991.png');
            background-size: contain;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .cat-paw-tab.active::before {
            opacity: 1;
        }
        .recipe-card {
            transition: transform 0.3s;
        }
        .recipe-card:hover {
            transform: translateY(-5px);
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- 顶部导航栏 -->
    <nav class="fixed top-0 left-0 right-0 bg-white/80 backdrop-blur-md shadow-sm z-50">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <h1 class="text-xl font-bold text-gray-800">个人中心</h1>
            <div class="w-6"></div>
        </div>
    </nav>

    <!-- 内容区域 -->
    <div class="container mx-auto px-4 py-6">
        <!-- 未登录状态 -->
        <div id="notLoggedIn" class="glass-effect rounded-xl p-6 mb-6 flex flex-col items-center justify-center">
            <div class="w-20 h-20 rounded-full bg-primary flex items-center justify-center mb-4">
                <i class="fas fa-user text-white text-3xl"></i>
            </div>
            <h2 class="text-xl font-bold text-gray-800 mb-2">您尚未登录</h2>
            <p class="text-gray-600 text-sm mb-4 text-center">登录后可以享受更多功能，包括家庭管理、菜品收藏等</p>
            <button class="py-2 px-6 bg-primary text-white rounded-lg mb-2">登录/注册</button>
            <div class="flex space-x-4 mt-2">
                <button class="w-10 h-10 rounded-full bg-green-500 flex items-center justify-center">
                    <i class="fab fa-weixin text-white text-xl"></i>
                </button>
                <button class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center">
                    <i class="fas fa-mobile-alt text-white text-xl"></i>
                </button>
                <button class="w-10 h-10 rounded-full bg-gray-500 flex items-center justify-center">
                    <i class="fas fa-user text-white text-xl"></i>
                </button>
            </div>
        </div>

        <!-- 已登录状态 -->
        <div id="loggedIn" class="tab-content">
            <!-- 用户信息 -->
            <div class="glass-effect rounded-xl p-4 mb-6 flex items-center">
                <div class="w-16 h-16 rounded-full overflow-hidden mr-4">
                    <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="用户头像" class="w-full h-full object-cover">
                </div>
                <div>
                    <h2 class="text-xl font-bold text-gray-800">小厨师</h2>
                    <p class="text-gray-600 text-sm mb-2">烹饪爱好者</p>
                    <div class="flex items-center">
                        <div class="flex items-center mr-4">
                            <i class="fas fa-utensils text-primary mr-1"></i>
                            <span class="text-sm text-gray-600">已烹饪 24 道菜</span>
                        </div>
                        <div class="flex items-center">
                            <i class="fas fa-star text-primary mr-1"></i>
                            <span class="text-sm text-gray-600">收藏 12 道菜</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 功能导航 -->
            <div class="grid grid-cols-4 gap-2 mb-6">
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-primary flex items-center justify-center mb-1">
                        <i class="fas fa-home text-white text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">家庭</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-secondary flex items-center justify-center mb-1">
                        <i class="fas fa-heart text-white text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">收藏</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-accent flex items-center justify-center mb-1">
                        <i class="fas fa-calendar-alt text-white text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">菜单</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-dark flex items-center justify-center mb-1">
                        <i class="fas fa-share-alt text-white text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">分享</span>
                </div>
            </div>

            <!-- 家庭功能 -->
            <div class="glass-effect rounded-xl p-4 mb-6">
                <div class="flex justify-between items-center mb-4">
                    <h2 class="text-xl font-bold text-gray-800">我的家庭</h2>
                    <button class="text-primary text-sm">创建家庭</button>
                </div>
                <div class="flex items-center mb-4">
                    <div class="w-12 h-12 rounded-full bg-primary flex items-center justify-center mr-3">
                        <i class="fas fa-home text-white text-xl"></i>
                    </div>
                    <div>
                        <h3 class="font-bold text-gray-800">温馨之家</h3>
                        <p class="text-gray-600 text-xs">3 位成员</p>
                    </div>
                </div>
                <div class="flex -space-x-2 mb-4">
                    <div class="w-10 h-10 rounded-full border-2 border-white overflow-hidden">
                        <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="成员头像" class="w-full h-full object-cover">
                    </div>
                    <div class="w-10 h-10 rounded-full border-2 border-white overflow-hidden">
                        <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="成员头像" class="w-full h-full object-cover">
                    </div>
                    <div class="w-10 h-10 rounded-full border-2 border-white overflow-hidden">
                        <img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="成员头像" class="w-full h-full object-cover">
                    </div>
                    <div class="w-10 h-10 rounded-full border-2 border-white bg-primary flex items-center justify-center">
                        <i class="fas fa-plus text-white text-sm"></i>
                    </div>
                </div>
                <div class="flex justify-between">
                    <button class="flex-1 mr-2 py-2 bg-white rounded-lg text-gray-700 text-sm">
                        <i class="fas fa-user-plus mr-1"></i> 邀请成员
                    </button>
                    <button class="flex-1 ml-2 py-2 bg-white rounded-lg text-gray-700 text-sm">
                        <i class="fas fa-cog mr-1"></i> 家庭设置
                    </button>
                </div>
            </div>

            <!-- 菜品管理 -->
            <div class="glass-effect rounded-xl p-4 mb-6">
                <div class="flex justify-between items-center mb-4">
                    <h2 class="text-xl font-bold text-gray-800">菜品管理</h2>
                    <button class="text-primary text-sm">查看全部</button>
                </div>
                <div class="grid grid-cols-3 gap-2 mb-4">
                    <div class="flex flex-col items-center">
                        <div class="w-16 h-16 rounded-full bg-primary flex items-center justify-center mb-2">
                            <i class="fas fa-heart text-white text-xl"></i>
                        </div>
                        <span class="text-xs text-gray-700">我的收藏</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-16 h-16 rounded-full bg-secondary flex items-center justify-center mb-2">
                            <i class="fas fa-calendar-day text-white text-xl"></i>
                        </div>
                        <span class="text-xs text-gray-700">今日菜单</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-16 h-16 rounded-full bg-accent flex items-center justify-center mb-2">
                            <i class="fas fa-shopping-cart text-white text-xl"></i>
                        </div>
                        <span class="text-xs text-gray-700">购物清单</span>
                    </div>
                </div>
                <div class="space-y-3">
                    <div class="flex items-center justify-between bg-white rounded-lg p-3">
                        <a href="cook.html" class="flex items-center flex-1">
                            <div class="w-12 h-12 rounded-lg overflow-hidden mr-3">
                                <img src="https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="菜谱" class="w-full h-full object-cover">
                            </div>
                            <div>
                                <h3 class="font-bold text-gray-800">意大利面</h3>
                                <p class="text-gray-600 text-xs">今日菜单</p>
                            </div>
                        </a>
                        <div class="flex">
                            <button class="w-8 h-8 rounded-full bg-primary flex items-center justify-center mr-2">
                                <i class="fas fa-heart text-white text-sm"></i>
                            </button>
                            <button class="w-8 h-8 rounded-full bg-primary flex items-center justify-center">
                                <i class="fas fa-share-alt text-white text-sm"></i>
                            </button>
                        </div>
                    </div>
                    <div class="flex items-center justify-between bg-white rounded-lg p-3">
                        <div class="flex items-center">
                            <div class="w-12 h-12 rounded-lg overflow-hidden mr-3">
                                <img src="https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="菜谱" class="w-full h-full object-cover">
                            </div>
                            <div>
                                <h3 class="font-bold text-gray-800">巧克力蛋糕</h3>
                                <p class="text-gray-600 text-xs">我的收藏</p>
                            </div>
                        </div>
                        <div class="flex">
                            <button class="w-8 h-8 rounded-full bg-primary flex items-center justify-center mr-2">
                                <i class="fas fa-heart text-white text-sm"></i>
                            </button>
                            <button class="w-8 h-8 rounded-full bg-primary flex items-center justify-center">
                                <i class="fas fa-share-alt text-white text-sm"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 成就徽章 -->
            <div class="glass-effect rounded-xl p-4 mb-6">
                <h2 class="text-xl font-bold text-gray-800 mb-4">我的成就</h2>
                <div class="grid grid-cols-4 gap-3">
                    <div class="flex flex-col items-center">
                        <div class="w-12 h-12 rounded-full bg-primary flex items-center justify-center mb-2">
                            <i class="fas fa-fire text-white text-xl"></i>
                        </div>
                        <span class="text-xs text-gray-700">初级厨师</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-12 h-12 rounded-full bg-secondary flex items-center justify-center mb-2">
                            <i class="fas fa-award text-white text-xl"></i>
                        </div>
                        <span class="text-xs text-gray-700">连续烹饪</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-12 h-12 rounded-full bg-accent flex items-center justify-center mb-2">
                            <i class="fas fa-share-alt text-white text-xl"></i>
                        </div>
                        <span class="text-xs text-gray-700">分享达人</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-12 h-12 rounded-full bg-dark flex items-center justify-center mb-2">
                            <i class="fas fa-lightbulb text-white text-xl"></i>
                        </div>
                        <span class="text-xs text-gray-700">创意厨师</span>
                    </div>
                </div>
            </div>

            <!-- 社交功能 -->
            <div class="glass-effect rounded-xl p-4 mb-6">
                <div class="flex justify-between items-center mb-4">
                    <h2 class="text-xl font-bold text-gray-800">烹饪动态</h2>
                    <button class="text-primary text-sm">发布动态</button>
                </div>
                <div class="space-y-4">
                    <div class="bg-white rounded-lg p-3">
                        <div class="flex items-center mb-2">
                            <div class="w-10 h-10 rounded-full overflow-hidden mr-3">
                                <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="用户头像" class="w-full h-full object-cover">
                            </div>
                            <div>
                                <h3 class="font-bold text-gray-800">小厨师</h3>
                                <p class="text-gray-600 text-xs">刚刚</p>
                            </div>
                        </div>
                        <p class="text-gray-700 mb-2">今天尝试做了意大利面，味道不错！</p>
                        <div class="rounded-lg overflow-hidden mb-2">
                            <img src="https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="动态图片" class="w-full h-40 object-cover">
                        </div>
                        <div class="flex justify-between text-gray-500 text-sm">
                            <button class="flex items-center">
                                <i class="far fa-heart mr-1"></i>
                                <span>12</span>
                            </button>
                            <button class="flex items-center">
                                <i class="far fa-comment mr-1"></i>
                                <span>3</span>
                            </button>
                            <button class="flex items-center">
                                <i class="far fa-share-square mr-1"></i>
                                <span>分享</span>
                            </button>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg p-3">
                        <div class="flex items-center mb-2">
                            <div class="w-10 h-10 rounded-full overflow-hidden mr-3">
                                <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="用户头像" class="w-full h-full object-cover">
                            </div>
                            <div>
                                <h3 class="font-bold text-gray-800">美食家</h3>
                                <p class="text-gray-600 text-xs">2小时前</p>
                            </div>
                        </div>
                        <p class="text-gray-700 mb-2">参加了"周末烘焙挑战"，这是我做的巧克力蛋糕！</p>
                        <div class="rounded-lg overflow-hidden mb-2">
                            <img src="https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="动态图片" class="w-full h-40 object-cover">
                        </div>
                        <div class="flex justify-between text-gray-500 text-sm">
                            <button class="flex items-center">
                                <i class="far fa-heart mr-1"></i>
                                <span>28</span>
                            </button>
                            <button class="flex items-center">
                                <i class="far fa-comment mr-1"></i>
                                <span>7</span>
                            </button>
                            <button class="flex items-center">
                                <i class="far fa-share-square mr-1"></i>
                                <span>分享</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 烹饪记录 -->
            <div>
                <div class="flex justify-between items-center mb-4">
                    <h2 class="text-xl font-bold text-gray-800">烹饪记录</h2>
                    <a href="#" class="text-primary text-sm">查看全部</a>
                </div>
                <div class="space-y-4">
                    <!-- 记录 1 -->
                    <div class="glass-effect rounded-xl p-4 flex items-center">
                        <img src="https://images.unsplash.com/photo-1476224203421-9ac39bcb3327?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="菜谱" class="w-16 h-16 rounded-lg object-cover mr-4">
                        <div class="flex-1">
                            <h3 class="font-bold text-gray-800">香煎鸡胸肉</h3>
                            <p class="text-gray-600 text-xs mb-1">2023-04-20 烹饪</p>
                            <div class="flex items-center">
                                <div class="flex items-center mr-3">
                                    <i class="fas fa-star text-yellow-400 text-xs mr-1"></i>
                                    <span class="text-xs text-gray-600">4.5</span>
                                </div>
                                <div class="flex items-center">
                                    <i class="fas fa-comment text-primary text-xs mr-1"></i>
                                    <span class="text-xs text-gray-600">味道不错，下次少放点盐</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 记录 2 -->
                    <div class="glass-effect rounded-xl p-4 flex items-center">
                        <img src="https://images.unsplash.com/photo-1546069901-ba9599a7e63c?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="菜谱" class="w-16 h-16 rounded-lg object-cover mr-4">
                        <div class="flex-1">
                            <h3 class="font-bold text-gray-800">健康早餐碗</h3>
                            <p class="text-gray-600 text-xs mb-1">2023-04-18 烹饪</p>
                            <div class="flex items-center">
                                <div class="flex items-center mr-3">
                                    <i class="fas fa-star text-yellow-400 text-xs mr-1"></i>
                                    <span class="text-xs text-gray-600">5.0</span>
                                </div>
                                <div class="flex items-center">
                                    <i class="fas fa-comment text-primary text-xs mr-1"></i>
                                    <span class="text-xs text-gray-600">非常美味，营养均衡</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 我的成就 -->
            <div class="bg-white rounded-2xl shadow-sm p-6 mb-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-lg font-medium text-gray-800">我的成就</h3>
                    <a href="achievement.html" class="text-sm text-red-500 flex items-center">
                        查看详情
                        <i class="fas fa-chevron-right ml-1 text-xs"></i>
                    </a>
                </div>
                <div class="grid grid-cols-3 gap-4">
                    <div class="flex flex-col items-center">
                        <div class="w-16 h-16 rounded-full bg-red-100 flex items-center justify-center mb-2">
                            <i class="fas fa-utensils text-red-500 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">烹饪新手</span>
                        <span class="text-xs text-gray-400">2/3</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-2">
                            <i class="fas fa-star text-yellow-500 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">烹饪达人</span>
                        <span class="text-xs text-gray-400">0/10</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-16 h-16 rounded-full bg-green-100 flex items-center justify-center mb-2">
                            <i class="fas fa-crown text-green-500 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">烹饪大师</span>
                        <span class="text-xs text-gray-400">0/30</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 修改后的底部导航栏 -->
    <div class="fixed bottom-0 left-0 right-0 glass-effect py-2 px-4 flex justify-around items-center">
        <a href="index.html" class="cat-paw-tab flex flex-col items-center text-gray-600">
            <i class="fas fa-home text-xl"></i>
            <span class="text-xs mt-1">首页</span>
        </a>
        <a href="discover.html" class="cat-paw-tab flex flex-col items-center text-gray-600">
            <i class="fas fa-compass text-xl"></i>
            <span class="text-xs mt-1">发现</span>
        </a>
        <a href="menu.html" class="cat-paw-tab flex flex-col items-center text-gray-600">
            <i class="fas fa-list text-xl"></i>
            <span class="text-xs mt-1">菜单</span>
        </a>
        <a href="profile.html" class="cat-paw-tab active flex flex-col items-center text-primary">
            <i class="fas fa-user text-xl"></i>
            <span class="text-xs mt-1">我的</span>
        </a>
    </div>

    <script>
        // 模拟登录状态切换
        // 在实际应用中，这里应该根据用户的登录状态来显示不同的内容
        // 这里为了演示，我们默认显示未登录状态
        document.getElementById('notLoggedIn').classList.add('active');
        document.getElementById('loggedIn').classList.remove('active');
        
        // 点击登录按钮时切换到已登录状态（仅用于演示）
        document.querySelector('#notLoggedIn button').addEventListener('click', function() {
            document.getElementById('notLoggedIn').classList.remove('active');
            document.getElementById('loggedIn').classList.add('active');
        });
    </script>
</body>
</html> 